package com.example.test.springbootdemo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WelcomeController {
	
	@RequestMapping(value="/springbootdemo")
	public String welcome(){
		return "Welcome access there";
	}
	
	@RequestMapping(value="/springbootdemo/login/{name}")
	public String login(@PathVariable("name") String name){
		return "Welcome "+name+" signin there";
	}
	
}
